<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">
    /*
    * navigator对象获取浏览器相关的信息
    * */
    console.dir(window.navigator);
    console.dir(navigator);
    console.log(navigator.userAgent);// 用户上网代理，浏览器就是一个上网代理，帮用户上网
    // Chrome/99.0.4844.51

    /**
     * Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36
     */
</script>

</html>
